<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<input type="text" oninput="haha()">
<script>
    function haha(){
        alert(1);
    }
</script>
</body>
</html>